package com.bingxue.edu.management.education.model.entity;

import com.bingxue.edu.framework.common.model.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalTime;

import static com.bingxue.edu.common.constant.DateConstants.FORMAT_TIME_HHmm;

@Data
@EqualsAndHashCode(callSuper = true)
@Table("edu_time_template")
public class TimeTemplate extends BaseEntity {

    @Schema(description = "名称")
    private String name;

    @Schema(description = "开始时间")
    @JsonFormat(pattern = FORMAT_TIME_HHmm)
    private LocalTime startTime;

    @Schema(description = "结束时间")
    @JsonFormat(pattern = FORMAT_TIME_HHmm)
    private LocalTime endTime;

}
